﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020010E7 RID: 4327
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SceneReviveAfterRebattleScRsp : IMessage<SceneReviveAfterRebattleScRsp>, IMessage, IEquatable<SceneReviveAfterRebattleScRsp>, IDeepCloneable<SceneReviveAfterRebattleScRsp>, IBufferMessage
	{
		// Token: 0x170036D9 RID: 14041
		// (get) Token: 0x0600C1AC RID: 49580 RVA: 0x0020C578 File Offset: 0x0020A778
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SceneReviveAfterRebattleScRsp> Parser
		{
			get
			{
				return SceneReviveAfterRebattleScRsp._parser;
			}
		}

		// Token: 0x170036DA RID: 14042
		// (get) Token: 0x0600C1AD RID: 49581 RVA: 0x0020C57F File Offset: 0x0020A77F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SceneReviveAfterRebattleScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170036DB RID: 14043
		// (get) Token: 0x0600C1AE RID: 49582 RVA: 0x0020C591 File Offset: 0x0020A791
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SceneReviveAfterRebattleScRsp.Descriptor;
			}
		}

		// Token: 0x0600C1AF RID: 49583 RVA: 0x0020C598 File Offset: 0x0020A798
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneReviveAfterRebattleScRsp()
		{
		}

		// Token: 0x0600C1B0 RID: 49584 RVA: 0x0020C5A0 File Offset: 0x0020A7A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneReviveAfterRebattleScRsp(SceneReviveAfterRebattleScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C1B1 RID: 49585 RVA: 0x0020C5C5 File Offset: 0x0020A7C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneReviveAfterRebattleScRsp Clone()
		{
			return new SceneReviveAfterRebattleScRsp(this);
		}

		// Token: 0x170036DC RID: 14044
		// (get) Token: 0x0600C1B2 RID: 49586 RVA: 0x0020C5CD File Offset: 0x0020A7CD
		// (set) Token: 0x0600C1B3 RID: 49587 RVA: 0x0020C5D5 File Offset: 0x0020A7D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600C1B4 RID: 49588 RVA: 0x0020C5DE File Offset: 0x0020A7DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SceneReviveAfterRebattleScRsp);
		}

		// Token: 0x0600C1B5 RID: 49589 RVA: 0x0020C5EC File Offset: 0x0020A7EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SceneReviveAfterRebattleScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C1B6 RID: 49590 RVA: 0x0020C61C File Offset: 0x0020A81C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C1B7 RID: 49591 RVA: 0x0020C65B File Offset: 0x0020A85B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C1B8 RID: 49592 RVA: 0x0020C663 File Offset: 0x0020A863
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C1B9 RID: 49593 RVA: 0x0020C66C File Offset: 0x0020A86C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C1BA RID: 49594 RVA: 0x0020C6A0 File Offset: 0x0020A8A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C1BB RID: 49595 RVA: 0x0020C6DE File Offset: 0x0020A8DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SceneReviveAfterRebattleScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C1BC RID: 49596 RVA: 0x0020C70F File Offset: 0x0020A90F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C1BD RID: 49597 RVA: 0x0020C718 File Offset: 0x0020A918
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004E41 RID: 20033
		private static readonly MessageParser<SceneReviveAfterRebattleScRsp> _parser = new MessageParser<SceneReviveAfterRebattleScRsp>(() => new SceneReviveAfterRebattleScRsp());

		// Token: 0x04004E42 RID: 20034
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004E43 RID: 20035
		public const int RetcodeFieldNumber = 7;

		// Token: 0x04004E44 RID: 20036
		private uint retcode_;
	}
}
